#!/bin/sh

echo "输入要的读的多少行"
read i
echo "输入要的读的文件名"
read filename

for((j=1;j<=$i;j++));do
#	ip=`awk 'NR==$j { print $0}' $filename`
#	ip=`echo "`awk '{if (NR==$j) print $1}' $filename`"`
	#ip=`echo $filename|awk '{if (NR==$j) print $1}' IPv6_Prefix_Btable`
	#echo "$ip"
echo "$filename$j"

ip=`awk '{if (NR==m) print $1}' m=$j $filename`
echo "$ip"
done

